#ifndef CHECK_H__
#define CHECK_H__

#include <math.h>

extern unsigned ErrCnt___;

#define CHECK(a, b) { ErrCnt___ += fabs((double)((a)-(b))) > 1e-10; }
#define RESULT      { printf("Number of errors = %u\n", ErrCnt___);  }

#endif //CHECK_H__